<!DOCTYPE html>
<html>
<head>
<title>生产数据</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="css/bootstrap.min.css"></link>
<link rel="stylesheet" href="css/my.css"></link>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/product.js"></script>
<!-- <script src="js/echarts.min.js"></script> -->

<script src="js/head.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/logincheck.js"></script>

</head>

<body>
	<div id="headnav"></div>
	<div id="loginholder"></div>

	<div class="container-fluid">
		<div class="jumbotron" ng-app="time" ng-controller="Ctrl2">
			<h1>生产数据:</h1>
			<div ng-controller="Ctrl2" class="pdiv">
				<div class="div1 h2" id="nowdate"></div>
				<div class="div1 h2">,实际执行</div>
				<div class="div2 h2" id="jiaci"></div>
				<div class="div1 h2">架次，旅客吞吐量</div>
				<div class="div2 h2" id="renci"></div>
				<div class="div1 h2">人次，货邮吞吐量</div>
				<div class="div2 h2" id="tuntu"></div>
				<div class="div1 h2">吨，机场航班正常率</div>
				<div class="div2 h2" id="hangban"></div>
				<div class="div2 h2">%</div>
				<div class="div1 h2">，其中放行正常率</div>
				<div class="div2 h2" id="fangxing"></div>
				<div class="div2 h2">%</div>
				<div class="div1 h2">。</div>
			</div>

			<!-- 
    	  <div class="row" style="padding-top:20px">
	    	  <div class="col-md-4" id="jiaci_chart" style="width: 500px;height:400px;"></div>
			  <div class="col-md-4 " id="tuntu_chart" style="width: 500px;height:400px;"></div>
			  <div class="col-md-4 " id="fangxing_chart" style="width: 500px;height:400px;"></div>
		  </div>
		    -->

			<!--   
		<script type="text/javascript">
		
			var myChart = echarts.init(document.getElementById('jiaci_chart'));
			var option = {
			    title: {
			        text: ''
			    },
			    tooltip: {},
			    legend: {
			        data:['实际架次','货邮吞吐']
			    },
			    xAxis: {
			        data: []
			    },
			    yAxis: {},
			    series: [
			    {
			        name: '实际架次',
			        type: 'line',
			        data: [],
			        itemStyle: {  
                        normal: {  
                            label: {  
                                show: true, 
                                textStyle: {  
                                    fontWeight:'bolder',  
                                    fontSize : '16',  
                                    fontFamily : '微软雅黑'                                      
                                }  
                            }  
                        }  
                    },  
			    },{
			        name: '货邮吞吐',
			        type: 'line',
			        data: [],
			        itemStyle: {  
                        normal: {  
                            label: {  
                                show: true, 
                                textStyle: {  
                                    fontWeight:'bolder',  
                                    fontSize : '18',  
                                    fontFamily : '微软雅黑'                                      
                                }  
                            }  
                        }  
                    },  
			    }]
			};
			myChart.setOption(option);
			
			var myChart2 = echarts.init(document.getElementById('tuntu_chart'));
			var option2 = {
			    title: {
			        text: '旅客'
			    },
			    tooltip: {},
			    legend: {
			        data:['人次']
			    },
			    xAxis: {
			        data: []
			    },
			    yAxis:{
			    	 type: 'value',
			    },
			    series: [{
			        name: '人次',
			        type: 'line',
			        data: [],
			        itemStyle: {  
                        normal: {  
                            label: {  
                                show: true,//是否展示  
                                textStyle: {  
                                    fontWeight:'bolder',  
                                    fontSize : '18',  
                                    fontFamily : '微软雅黑',                                      
                                }  
                            }  
                        }  
                    },
			    }]
			};
			myChart2.setOption(option2);
			
			var myChart3 = echarts.init(document.getElementById('fangxing_chart'));
			myChart3.setOption({
			    title:{
			    	text:'放行正常率',
			    },
			    color:['#df505d','#3CB371'],
			    legend:{
			    	 orient: 'vertical',
			         left: 'right',
			         data: ['放行异常','放行正常']
			    },
				series : [
			        {
			        	title:'放行正常率',
			            name: '放行正常率',
			            type: 'pie',
			            radius: '55%',
			            data:[			               
			                {value:30, name:'放行异常'},
			                {value:70, name:'放行正常'}
			            ],itemStyle:{ 
			                normal:{ 
			                    label:{ 
			                      show: true,
			                      textStyle: {  
	                                    fontWeight:'bolder',  
	                                    fontSize : '17',  
	                                    fontFamily : '微软雅黑',                                      
	                                }, 
			                      formatter: '{b} :{d}%' 
			                    }, 
			                    labelLine :{show:true} 
			                  } 
			              } 
			        }
			    ]
			})
							
			  
			$.get("/Attence/chartdata",function (result) {
				//console.log(result);				
				var data = JSON.parse(result);			    
				//console.log(data.data7[4]);
				
				var tmp=data.data2.concat(data.data4);
				
				myChart.setOption({
			        xAxis: {
			            data: data.categories			            
			        },			        
			        yAxis:{
			        	//min:Math.min.apply(null,data.data2)
			        	min:Math.min.apply(null,tmp)-10
			        	//min : Math.min.apply(null,[data.data2])-50
			        },
			        series: [{
			            name: '实际架次',			            
			            data: data.data2
			        },{
			        	name: '货邮吞吐',
			        	data: data.data4
			        }]
			    });
			    
			    myChart2.setOption({
			        xAxis: {
			            data: data.categories
			        },
			        yAxis:{
			        	min:Math.min.apply(null,data.data3)-5000
			        },
			        series: [{
			            name: '人次',
			            data: data.data3			            
			        }]
			    });
			    
			    myChart3.setOption({
			    	series: [{
			            name: '放行正常率',
			            data:[			               
				                {value:100-data.data7[4], name:'放行异常'},
				                {value:data.data7[4], name:'放行正常'}
				            ]			            
			        }]
			    });
			});
			
		</script>
		-->
		</div>

		<div class="jumbotron" ng-app="time" ng-controller="Ctrl2">
			<h1>集团内违规违章:</h1>
			<div id="peccontent" class="pdiv"></div>
		</div>
	</div>

</body>
</html>